import Request from './request.js';
let request = new Request().http

export default {
	//首页-展示数据
	getIndex: function(data) {
		return request('/api/phone/index', data, 'GET');
	},
	//活动分页
	selectWxNoticePage: function(data) {
		return request('/api/phone/base/selectWxNoticePage', data, 'POSTS');
	},
	//活动详情
	getWxNoticeById: function(data) {
		return request('/api/phone/base/getWxNoticeById', data, 'GET');
	},
	//找茬页面
	applyFaultIndex: function(data) {
		return request('/api/phone/fault/applyFaultIndex', data, 'POSTS');
	},
	//找茬提交
	addFaultRecord: function(data) {
		return request('/api/phone/fault/addFaultRecord', data, 'POSTS');
	},
	//我的找茬分页
	pageFaultRecord: function(data) {
		return request('/api/phone/fault/pageFaultRecord', data, 'POSTS');
	},
	//订单详情
	getFaultRecordDetail: function(data) {
		return request('/api/phone/fault/getFaultRecordDetail', data, 'POSTS');
	},
	//工作人员找茬分页
	workerPageFaultRecord: function(data) {
		return request('/api/phone/faultWorker/pageFaultRecord', data, 'POSTS');
	},
	//工作人员找茬处理结果
	manageFaultRecord: function(data) {
		return request('/api/phone/faultWorker/manageFaultRecord', data, 'POSTS');
	},
	//用户解决确认茬处理结果
	submitFaultRecord: function(data) {
		return request('/api/phone/fault/submitFaultRecord', data, 'POSTS');
	},
	//获取组件
	getDiyCompContent: function(data) {
		return request('/api/phone/getDiyCompContent', data, 'GET');
	},
	//我的
	getMy: function(data) {
		return request('/api/phone/my', data, 'GET');
	},
	//评价
	evalFaultRecord: function(data) {
		return request('/api/phone/fault/evalFaultRecord', data, 'POSTS');
	},
	//找茬榜单数据
	totalNum: function(data) {
		return request('/api/phone/fault/totalNum', data, 'POSTS');
	},
	//找茬榜单top10
	totalMemberList: function(data) {
		return request('/api/phone/fault/totalMemberList', data, 'POSTS');
	},
	//找茬榜单占比
	totalCountType: function(data) {
		return request('/api/phone/fault/totalCountType', data, 'POSTS');
	},
	
	//
	selectWxNoticePage: function(data) {
		return request('/api/phone/website/selectWxNoticePage', data, 'POSTS');
	},
	selectWxNoticeCategoryList: function(data) {
		return request('/api/phone/website/selectWxNoticeCategoryList', data, 'POSTS');
	},
	getWxNoticeById: function(data) {
		return request('/api/phone/website/getWxNoticeById', data, 'GET');
	}
	
	
	
	
}
